﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Gapper
{
    class Sprite2D
    {
        public Vector2 Position = new Vector2(17, 11);
        protected Texture2D texture;
        public float RotationAngle;

        public virtual void LoadContent(ContentManager contentManager, string assetName) {
            texture = contentManager.Load<Texture2D>(assetName);
        }
        public virtual void Draw(SpriteBatch spriteBatch) {

            spriteBatch.Draw(texture, Position, null, Color.White, RotationAngle* MathHelper.Pi/180, new Vector2(texture.Width / 2, texture.Height / 2), 1.0f, SpriteEffects.None, 0f);
        }
        public virtual void Update() { }
    }
}
